package com.appbee.cm.client.modular.presenter;

import java.util.ArrayList;
import java.util.List;

import javax.inject.Singleton;

@Singleton
public class ModulGroups
{
	private final List<ModulGroup> groups = new ArrayList<ModulGroup>();

	public List<ModulGroup> getList()
	{
		return groups;
	}

	public ModulGroups add(ModulGroup group)
	{
		groups.add(group);
		return this;
	}

	public ModulGroup add(String name)
	{
		ModulGroup g = new ModulGroup(name);
		groups.add(g);
		return g;
	}
}
